<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
    var xhr = new XMLHttpRequest();
    xhr.open('post','/formData');
    var fd = new FormData();
    // fd.append('aihao[]','music');
    // fd.append('aihao[]','basketball');
    fd.set('aihao[]','music');
    fd.set('aihao[]','basketball');
    xhr.send(fd);
    xhr.onload = function(){
      if(xhr.status == 200){
        console.log(xhr.responseText);
      }
    }  
  </script>
</body>
</html>